<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>帮助中心</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="../../css/public-heder-Reset.css">
	<link rel="stylesheet" href="../../css/M-Help.css">
</head>
<body>
	<!-- page_box -->
	<div class="page-box">
		<!-- header -->
		<header class="page-header">
			<a href="javascript:history.go(-1)" class="back"></a>
			<p class="pege-name">帮助中心</p>
		</header>
		<div class="liubai"></div>
		<!-- header /-->
		<!-- Help-btn -->
		<div class="Help-btn">
			<ul class="btn clear">
				<li class="active"><i></i><span>注册登录</span></li>
				<li><i></i><span>充值提现</span></li>
				<li><i></i><span>投资理财</span></li>
				<li><i></i><span>备付金</span></li>
			</ul>
		</div>
		<!-- Help-btn/ -->
		<div class="cont-list">
			<ul>
				<!-- 异步获取信息 -->
			</ul>
		</div>
	</div>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/http-url.js"></script>
<script type="text/javascript">
	// 问题-显示隐事件
	function showContent(even){
		var data_help_id=$(even).attr('data-help-id');
		 window.localStorage.setItem("data_help_id",data_help_id);
		console.log(data_help_id)
		window.location.href="M-Help-details.html";
	}
	$(function(){
		var dataClick=null;
		loadConten('21');
		$('.Help-btn .btn li').click(function(){
			if(dataClick){
				return;
			}
			$(this).addClass('active').siblings('li').removeClass('active');
			questionId=$(this).index()+21;
			loadConten(questionId)
		});
		function loadConten(questionId){
			dataClick=true;
			ajaxRequest('/api/articles/question/'+questionId+'',null,function(data){
			var content="";
			for(var i=0;i<data.data.questions.length;i++){
				content+='<li class="show" onclick="showContent(this)" data-help-id="'+data.data.questions[i].id+'"><span></span><p>'+data.data.questions[i].title+'</p></li>'
			}
			$('.cont-list ul').html('');
			$(content).appendTo('.cont-list ul');
			dataClick=null
		},false)	
		}
		
	});
</script>
</body>
</html>






